package com.code.pattern.factory.factorymethod;

import com.code.pattern.factory.ICourse;

/**
 * 工厂方法测试
 * @author: liyufei
 * @date: 2021-03-14 14:43
 */
public class FactoryMethodTest {

    public static void main(String[] args) {

        ICourseFactory factory = new JavaCourseFactory();
        ICourse iCourse = factory.create();
        iCourse.record();
    }
}
